]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Add user permissions to new wifi connections
authorThore Sommer <mail@thson.de>
Mon, 2 Sep 2024 08:39:46 +0000 (10:39 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 2 Sep 2024 21:01:35 +0000 (21:01 +0000)
commitcdf0e5fc6ecfc3c62223af67d9f72692a3f97dff
treea79c267a3ffe81f7dee43947c26fc71771b861b7
parent2e659472f6130b908c99757f0c2a84418ac62987
status/network: Add user permissions to new wifi connections

When creating a new NM connection they are by default system connections. A
user cannot create them if they don't have the correct polkit permissions
(org.freedesktop.NetworkManager.settings.modify.system).

If a user tried to add a new connection in the drop down menu, then they got
no password prompt and NM logged the following:
[...] audit: op="connection-add-activate" pid=1872 uid=1000 result="fail" \
reason="Insufficient privileges"

This change adds the current user to the user permissions for the new
connection, if the user has no permissions to modify the system connections,
which copies the behavior of GNOME Settings.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3462>
js/ui/status/network.js